package router

import (
	"class-project/controller"
	"github.com/gin-gonic/gin"
)

func Router(router *gin.Engine) {

	// 简单的路由组: v1
	v1 := router.Group("/v1")
	{
		//登录
		v1.POST("/login", controller.UserLogin)
		//展示列表
		v1.POST("/list", controller.ClassList)
		//添加课程
		v1.POST("/create", controller.ClassCreate)
		//联查
		v1.POST("/search", controller.Search)
		//搜索
		v1.POST("/sous", controller.Sous)
	}

}
